// 1. vue2 new Vue() -> vue3  createApp()
// 2. vue2 Vue.use(插件) -> vue3  createApp().use(插件)

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/style/common.less'
import componentPlugin from '@/components/index' // 注册所有全局组件
import directivePlugin from '@/directive' // 全局自定义指令
createApp(App).use(componentPlugin).use(directivePlugin).use(store).use(router).mount('#app')
/* 持久化存储测试 */
// store.commit('user/setprofile')
